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qEKqIU
smi/k+OUclUEyLdTzFfPtY9/28Wmnq/nGFZlovQGJJpOZeRNqKWWZ9wcr9aTsjuI
M2BIyYjYucQx/lgcecN/ck94kg==
-----END CERTIFICATE-----
)EOF";
// =================== 基础配置 ===================
#define IS_USE_SSL false
#define HOST "dev.tuapi.cn"
#define PORT 443
#define URI_PREFIX "/api/hardware"

// =================== 配置服务API ===================
// GET 请求URL模板，最后 %s 是版本号占位符
#define GET_SERVICE_PROFILE_VERSION_URL URI_PREFIX "/%s/profileVersion"
#define GET_DEVICE_VERSION_URI URI_PREFIX "/%s/profile/%d"
#define PUT_DEVICE_VERSION_URL URI_PREFIX "/%s/profile/version"

// =================== OTA服务API ===================
#define OTA_VERSION_URI URI_PREFIX "/ota/FIRMWARE/%s"				 // 根据设备ID获取固件信息
#define OTA_BIN_URL URI_PREFIX "/ota/bin/%s"						 // 下载固件 %s 为固件ID
#define OTA_UPDATE_START_URI URI_PREFIX "/ota/update/%s/start"		 // 开始更新
#define OTA_UPDATE_PROGRESS_URI URI_PREFIX "/ota/update/%s/progress" // 更新进度
#define OTA_UPDATE_COMPLETE_URI URI_PREFIX "/ota/update/%s/complete" // 更新完成
#define OTA_UPDATE_FAILED_URI URI_PREFIX "/ota/update/%s/failed"	 // 更新失败

#ifdef __cplusplus
}
#endif

#endif /* API_URLS_H */